package com.gitee.wsl.mathematics.geometry.api

import com.gitee.wsl.mathematics.coordinate.Coordinate

interface TriangleShape<T:Number,V: Coordinate<T, V>>: CloseShape<T, V>{

    val a: V get() = proxy[0]
    val b: V get() = proxy[1]
    val c: V get() = proxy[2]

    val ab get() = createLine(a,b)
    val ac get() = createLine(a,c)
    val bc get() = createLine(b,c)

    fun createLine(a:V,b:V):LineShape<T,V>
}